/*
 * Copyright (c) 2019-2020, https://api.iot.10086.cn/(https://gitee.com/cmcc-iot-api/iot-card-open-application/).
 */
package cn.iot.card.open.sim.warpper;

import cn.iot.card.open.constants.Constants;
import cn.iot.card.open.constants.factory.ConstantFactory;
import cn.stylefeng.roses.core.base.warpper.BaseControllerWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.Map;

/**
 * 机卡绑定状态包装类
 *
 * @author zhanlele
 * @date 20200326 20:22:42
 * @modify 20200326 zhanlele v1.1.2 创建
 * @since v1.1.2
 */
public class CardBindingWrapper extends BaseControllerWrapper {

    public CardBindingWrapper(Page<Map<String, Object>> page) {
        super(page);
    }

    @Override
    protected void wrapTheMap(Map<String, Object> map) {
        map.put(Constants.RESPONSE_RESULT, ConstantFactory.me().getCardBindStatus((String) map.get(Constants.RESPONSE_RESULT)));
    }
}
